package team.newexcellence.tsfitness.service;


import team.newexcellence.tsfitness.pojo.Article;

import java.util.List;

public interface ArticleService {
    /**
     * 查询所有文章
     *
     * @return 存放文章ID的集合
     * @throws Exception
     */
    public List<Article> findAllArticle() throws Exception;

    /**
     * 根据传入的文章名模糊查询文章
     *
     * @param articleName
     * @return
     * @throws Exception
     */
    public List<Article> findArticleByName(String articleName) throws Exception;

    /**
     * 根据文章ID查找文章
     *
     * @param articleID
     * @return
     * @throws Exception
     */
    public Article findArticleByID(int articleID) throws Exception;
}
